from sqlalchemy import Integer, Column, String
from sqlalchemy.dialects.mysql import LONGTEXT

from models.base import db


class Paragraphs(db.Base):
    __tablename__ = 'paragraphs'
    id = Column(Integer, primary_key=True, autoincrement=True)
    order_number = Column(String(30), nullable=False)
    paragraph_index = Column(Integer, nullable=False)
    content = Column(LONGTEXT, default='')